package com.sanqing.util;

public class Page {
	private int  everyPage;//每页显示记录数
	private int totalCount;//总记录数
	private int totalPage;//总页数
	private int currentPage;//当前页
	private int beginIndex;//查询起点
	private boolean  hasPrePage;//是否有上一页
	private boolean  hasNextPage;//是否有下一页
	
	public void setEveryPage(int everyPage)
	{
		this.everyPage=everyPage;
	}
	public int getEveryPage()
	{
		return this.everyPage;
	}
	
	public void setTotalCount(int totalCount)
	{
		this.totalCount=totalCount;
	}
	public int getTotalCount()
	{
		return this.totalCount;
	}
	
	public void setTotalPage(int totalPage)
	{
		this.totalPage=totalPage;
	}
	public int getTotalPage()
	{
		return this.totalPage;
	}
	
	public void setCurrentPage(int currentPage)
	{
		this.currentPage=currentPage;
	}
	public int getCurrentPage()
	{
		return this.currentPage;
	}
	 
	public void setBeginIndex(int beginIndex)
	{
		this.beginIndex=beginIndex;
	}
	public int getBeginIndex()
	{
		return this.beginIndex;
	}
	
	public void setHasPrePage(boolean hasPrePage)
	{
		this.hasPrePage=hasPrePage;
	}
	public boolean getHasPrePage()
	{
		return this.hasPrePage;
	}
	
	public void setHasNextPage(boolean hasNextPage)
	{
		this.hasPrePage=hasNextPage;
	}
	public boolean getHasNextPage()
	{
		return this.hasNextPage;
	}
	
	public Page(int everyPage,int totalCount,int totalPage,int currentPage,int beginIndex,boolean hasPrePage,boolean hasNextPage)
	{
		this.everyPage=everyPage;
		this.totalCount=totalCount;
		this.totalPage=totalPage;
		this.currentPage=currentPage;
		this.beginIndex=beginIndex;
		this.hasPrePage=hasPrePage;
		this.hasNextPage=hasNextPage;
	}
	
	
	
}
